package kr.hkit.xmlhandler.dom;

import org.apache.log4j.Logger;

import java.util.ArrayList;

import javax.xml.parsers.ParserConfigurationException;

public class TestPersonParser {
	/**
	 * Logger for this class
	 */
	private static final Logger logger = Logger
			.getLogger(TestPersonParser.class);

	public static void main(String[] args) {
		String filePath = "personList.xml";
		
		PersonParser parser;
		try {
			parser = new PersonParser();
			ArrayList<PersonValue> personList = parser.parse(filePath);
			for(PersonValue pv : personList){
				logger.debug("PersonValue" + pv);
			}
		} catch (ParserConfigurationException e) {
			e.printStackTrace();
		}
		
		
	}
}
